package cn.lizemin.demo.clone;

import cn.lizemin.demo.thread.privileage.Test;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Demo extends Test {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) throws CloneNotSupportedException {
        Dog puppy = new Dog("puppy", 2);
        //向下转型
        Dog puppy2 = (Dog) puppy.clone();
        System.out.println(puppy2);

        //继承public修饰的类，创建的对象可以调用父类protected,和public修饰的方法
        Demo demo = new Demo();
        demo.swim();
        demo.sleeping();



    }

    
}
